#Makefile

Lattice.o: Lattice.cpp Lattice.h Cell.h Cell.cpp Common.h
	g++ -c -std=c++0x -O3 -funroll-loops Lattice.cpp Cell.h Cell.cpp Common.h

Cell.o: Cell.cpp Cell.h Common.h
	g++ -c -std=c++0x -O3 -funroll-loops Cell.cpp Cell.h Common.h

main2: main2.cpp ../../fftw++/fftw++.cc ../../fftw++/fftw++.h Lattice.o Cell.o
	g++ -O3 -funroll-loops main2.cpp ../../fftw++/fftw++.cc Lattice.o Cell.o -std=c++0x -lfftw3 -o taylor-green-mrt-incompressible-d2q9.x

clean:
	rm Lattice.o Cell.o mrt-d2q9.x taylor-green-mrt-incompressible-d2q9.x Common.h.gch Cell.h.gch Lattice.h.gch
